<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:pm="http://primefaces.org/mobile"	>
<f:loadBundle basename="label" var="label" />
<f:loadBundle basename="MessageResources" var="msgs" />
<h:head>
<h:outputStylesheet library="css" name="bootstrap.css" />
<h:outputStylesheet library="css" name="bootstrap-theme.css" />
</h:head>
<h:form>
<p:growl id="growl" showDetail="true" />
	<p:panel styleClass="container" header="#{label['cadastro.usuario.titulo']}">
		<div class="ui-field-contain">
		<pm:field>
			<p:outputLabel for="nome"  value="#{label['cadastro.usuario.nome']}" />
			<p:inputText id="nome" styleClass="form-control" value="#{usuarioController.user.nome}"/>
		</pm:field>
		</div>
		<pm:field>
			<p:outputLabel for="email" value="#{label['cadastro.usuario.email']}" />
			<p:inputText styleClass="form-control" id="email" value="#{usuarioController.user.email}"/>
		</pm:field>
		 <p:commandButton value="#{label['cadastro.btn.salvar']}" update="growl" actionListener="#{usuarioController.salvar()}" />
	</p:panel>
</h:form>
</html>